package com.share.admin.service;

import com.share.admin.model.db.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.share.admin.model.db.User;
import com.share.admin.model.vo.RolePageReq;
import com.share.common.common.Page;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2022-09-22
 */
public interface IRoleService extends IService<Role> {
    Set<Role> listByUserId(Long userId);

    Set<Role> listAll();

    Page pageList(RolePageReq req);

    Integer bindOrRemoveMenus(Boolean isBind, String roleId, List<String> menuIds);
}
